//
//  SEUser.h
//  SleepingElf
//
//  Created by karong on 2023/6/16.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SEUser : NSObject
///用戶ID
@property (nonatomic, assign) NSInteger id;
///用戶暱稱
@property (nonatomic, strong) NSString * nickname;
///头像
@property (nonatomic, strong) NSString * avatar;
///用户账号
@property (nonatomic, strong) NSString * account;
///token
@property (nonatomic, strong) NSString * token;
///最后登录时间
@property (nonatomic, assign) NSTimeInterval lastdate;
///帐户积分
@property (nonatomic, assign) NSInteger integral;
///注册天数
@property (nonatomic, assign) NSInteger reg_day;
///会员到期时间
@property (nonatomic, strong) NSString * vip_expires_time;
///会员过期天数/会员剩余天数
@property (nonatomic, assign) NSInteger vip_expires_days;
//会员状态：0-不是会员 1-会员 2-会员已过期
@property (nonatomic, assign) NSInteger vip_status;

@end

@interface SEUserCenter : SEUser

+ (instancetype)defaultSession;

@property (nonatomic, strong) NSString * qtoken;
@property (nonatomic, assign, readonly, getter=isLogin) BOOL login;

+(NSString *)uuid;

- (void)logIn:(SEUserCenter *)userCenter;
- (void)logOut;
- (void)save;
- (void)getUserInfoRequest;
@end
NS_ASSUME_NONNULL_END
